
package com.programmingeyeclient.user.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.programmingeyeclient.user.entity.Teacher;
import com.programmingeyeclient.user.mapper.TeacherMapper;
import com.programmingeyeclient.user.service.TeacherService;
import com.programmingeyeclient.user.vo.TeacherVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 讲师 服务实现类
 */
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements TeacherService {

	@Autowired
	private TeacherMapper teacherMapper;
	@Override
	public IPage<TeacherVO> selectTeacherPage(IPage<TeacherVO> page, TeacherVO teacher) {
		return page.setRecords(baseMapper.selectTeacherPage(page, teacher));
	}

	@Override
	public int getTeacherCount() {
		return teacherMapper.getTeacherCount();
	}

	@Override
	public List<Teacher> selectTeacherList() {
		return teacherMapper.selectTeacherList();
	}

}
